package ua.cn.store.service;

import ua.cn.store.domain.Account;

public interface IAccountService extends IGenericService<Account>{

	/**
	 * Checking if login==log && this.passwd==pass and enter the store
	 * @param login
	 * @param passwd
	 * @return true or false
	 * @throws IllegalArgumentException
	 */
	public boolean enter (String login, String passwd)
	throws IllegalArgumentException;
			
	/**
	 * Register user
	 * @param log
	 * @param pass
	 * @param email
	 * @param fName
	 * @param sName
	 * @param tel
	 * @throws IllegalArgumentException
	 */
	public void register(String log, String pass, String email, String fName,
			String sName, String tel)
	throws IllegalArgumentException;
	
/**
 * Find users account
 * @param id
 * @return Object Account
 * @throws IllegalArgumentException
 * @throws GeneralServiceException
 */
	public Account getAccountByUser(Long id)
			throws IllegalArgumentException, GeneralServiceException;
}
